import {
  request,
} from "@rabbit.do/rabbit";

// 查询列表
export const supplierList = (data) => request({
  url: "/swan/store/purchase/find/page",
  data,
});
// 进货
export const inStock = (data) => request({
  url: "/swan/store/purchase/in/goods",
  data,
});
// 退货
export const outStock = (data) => request({
  url: "/swan/store/purchase/out/goods",
  data,
});
// 导入物料列表
export const materialImport = (data) => request({
  url: "/swan/product/thing/find/all",
  data,
});
// 导入药品列表
export const drugImport = (data) => request({
  url: "/swan/product/medicine/find/all",
  data,
});
// 详情
export const detailsData = (data) => request({
  url: "/swan/store/purchase/content/get",
  data,
});
// 新增盘点
export const addStockList = (data) => request({
  url: "/swan/store/check/log/create",
  data,
});
// 物资查询可用
export const materialAvailable = (data) => request({
  url: "/swan/store/resource/find/available",
  data,
});
// 物资查询
export const materialQuery = (data) => request({
  url: "/swan/store/resource/find",
  data,
});
// 供应商
export const supplierData = (data) => request({
  url: "/swan/store/provider/find/all",
  data,
});
